package com.galaxy.device.service;

import com.galaxy.device.domain.DeviceLog;
import com.galaxy.device.domain.DeviceStatus;
import com.galaxy.device.domain.vo.DeviceStatusVo;

import java.time.Instant;
import java.time.LocalDateTime;
import java.util.List;

public interface InfluxDBService {
    boolean uploadedDeviceStatus(DeviceStatus deviceStatus);
    boolean uploadedDeviceLog(DeviceLog deviceLog);
    List<DeviceStatus> queryDeviceStatusByConditions(String deviceNo, Instant startTime, Instant endTime);
    List<DeviceLog> queryDeviceLogByConditions(String deviceNo, LocalDateTime start, LocalDateTime end);
}
